﻿@model BlackBox.Controllers.GameViewModel
@{
    ViewBag.Title = "Category";
}
<div id="category">
    <p>
        <a href="~/Home/Main">Home</a>
         > 
        <a href="~/Game/PlayGame">Play Game</a>
    </p>

    <h3>@Model.CategoryData.categorytitle</h3>

    @foreach (var Game in Model.GameListData)
    {
            <div class="category-game">
                <h5><a href="~/Game/Game/@Game.id">@Game.name</a></h5>
                <img src="@Game.image" alt="Game image"/>
                <p>@Game.description</p>
            </div>
    }

</div>